package com.crm.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 票证记录与 公司，交易 ，联系人关联
 * </p>
 *
 * @author zjd
 * @since 2021-04-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("user_ticket_associate")
@ApiModel(value="TicketAssociate对象", description="票证记录与 公司，交易 ，联系人关联")
public class TicketAssociate extends Model {

    private static final long serialVersionUID = 1L;
    @TableId(type=IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "操作索引id (公司id 交易id 联系人id)")
    private Long indexId;

    @ApiModelProperty(value = "操作类型 （1公司 2 交易 3联系人）")
    private Long type;

    @ApiModelProperty(value = "票证id")
    private Long ticketId;

    @ApiModelProperty(value = "创建用户")
    private Long createUserId;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    @TableLogic
    private Long isDelete;

    @Version
    @TableField(fill = FieldFill.INSERT)
    private Long version;




}
